/*
 * ds18b20.h
 *
 * Created: 28.02.2013 18:06:33
 *  Author: saenko
 */ 


#ifndef DS18B20_H_
#define DS18B20_H_

uint8_t get_temperature(void);

uint8_t ds18d20_read_addr(void);

uint8_t ds18d20_convert_t(void);

uint8_t temperature;

void out_addr(void);

uint8_t scratch_buf[9];

uint8_t ds18d20_read_scratch(void);

uint8_t ds18d20_write_scratch(uint8_t TH,uint8_t TL, uint8_t set);

void save_addr(void);


void OW_cmd_CONVERT_T(void);


void OW_cmd_READ_SCRATCH(void);


void OW_cmd_WRITE_SCRATCH(void);


void OW_cmd_COPY_SCRATCH(void);


void OW_cmd_RECALL_E(void);


void OW_cmd_READ_POWER(void);

void OW_cmd_SKIP_ROM(void);



void OW_cmd_SEARCH_ROM(void);

void OW_cmd_READ_ROM(void);



#endif /* DS18B20_H_ */